package com.example.demo;

import com.example.demo.mqsever.BroKerServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class MqApplication {

	// Spring 的配置类
	public static ConfigurableApplicationContext context;

	public MqApplication() throws IOException {
	}

	public static void main(String[] args) throws IOException {
		context = SpringApplication.run(MqApplication.class, args);

		BroKerServer broKerServer = new BroKerServer(9090);
		broKerServer.start();
	}




}
